﻿using ConfigCreate.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConfigCreate
{
    /// <summary>
    /// 多选下拉框控件（如果依附在枚举下可直接获取枚举列表，否则需要设置ItemListPropertyName属性获取列表数据）
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public class CreateMultipleComboBoxAttribute : CreateComboBoxAttribute
    {
        /// <summary>
        /// 多选下拉框控件（如果依附在枚举下可直接获取枚举列表，否则需要设置ItemListPropertyName属性获取列表数据）
        /// </summary>
        /// <param name="header_name">大类别名</param>
        /// <param name="group_name">组名</param>
        /// <param name="title">控件标题</param>
        public CreateMultipleComboBoxAttribute(string header_name, string group_name, string title) : base(header_name, group_name, title)
        { }

        /// <summary>
        /// 显示选择所有项按钮
        /// </summary>
        public bool ShowSelectAllButton { get; set; } = true;
        /// <summary>
        /// 显示清除所有按钮
        /// </summary>
        public bool ShowClearButton { get; set; } = true;
    }
}
